<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@include file="/commons/taglibs.jsp" %>
    <%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
    <div class="navbar navbar-default" role="navigation">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="" href="index.html"><span class="navbar-brand"><span class="fa fa-paper-plane"></span> 店铺盘点</span></a>
          </div>
		
		<shiro:hasRole name="admin">
        <div class="navbar-collapse collapse" style="height: 1px;float:left">
          <ul id="main-menu-1" class="nav navbar-nav navbar-right">
            <li class="dropdown hidden-xs">
            	
            	
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    
                    	店铺盘点
                    <i class="fa fa-caret-down"></i>
                </a>
				
              <ul class="dropdown-menu">
              	
              </ul>
              
            </li>
          </ul>

        </div>
		
		</shiro:hasRole>
        <div class="navbar-collapse collapse" style="height: 1px;float:right">
          <ul id="main-menu" class="nav navbar-nav navbar-right">
            <li class="dropdown hidden-xs">
            	
            	
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user padding-right-small" style="position:relative;top: 3px;"></span> <shiro:user>
							<shiro:principal property="name" />
						</shiro:user>
                    <i class="fa fa-caret-down"></i>
                </a>
				
              <ul class="dropdown-menu">
                <li><a href="./">我的帐户</a></li>
                <li class="divider"></li>
                <li><a tabindex="-1" href="${pageContext.request.contextPath}/logout">登出</a></li>
              </ul>
              
            </li>
          </ul>

        </div>
      </div>